/**
 * 
 */
package com.yunyike.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunyike.mapper.MerchandiseBrandMapper;
import com.yunyike.model.MerchandiseBrand;
import com.yunyike.service.IMerchandiseBrandService;

/**
 * @author zhengqiang.shi
 * 2016-3-31 下午5:44:01
 */
@Service("MerchandiseBrandServiceImpl")
public class MerchandiseBrandServiceImpl implements IMerchandiseBrandService {

	@Autowired
	private MerchandiseBrandMapper merchandiseBrandMapper;

	/**
	 * 查询所有商品的品牌
	 */
	public List<MerchandiseBrand> findAllMerchandiseBrand() {
		return merchandiseBrandMapper.findAllMerchandiseBrand();
	}

	public int save(MerchandiseBrand mb) {
		return merchandiseBrandMapper.insertSelective(mb);
	}
	
}
